package java8_5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Score2 {
    //java和音乐成绩，大于90和80，或者一个满分，一个大于70，有iphone
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入张浩的java和music成绩：");
        int javaScore=in.nextInt();
        int musicScore=in.nextInt();
        if((javaScore>90&&musicScore>80 )|| (javaScore==100 && musicScore>70)){
            System.out.println("有爱疯作为奖励");
        }
    }
}
